﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cuoihocsinh
{
    class Program
    {
        static void Main(string[] args)
        {
            int soluongsinhvien;
            do
             {
             Console.Write("Ban Se Nhap Bao Nhieu Sinh VIen: \a");
             soluongsinhvien = int.Parse(Console.ReadLine());
                if(soluongsinhvien<2||soluongsinhvien>30)
                    Console.WriteLine("Ban Da Nhap Sai so luong sinh vien!!!");
            }
             while (soluongsinhvien < 2 || soluongsinhvien > 30);
            
          
            hocsinh[] hs = new hocsinh[soluongsinhvien];
            for (int i = 0; i < soluongsinhvien; i++)
            {
                hs[i] = new hocsinh();
                Console.WriteLine("Nhap Sinh Vien {0} ",i+1);
                hs[i].nhap();
                Console.WriteLine();
                // xuat ket qua tung sinh vien
                hs[i].xuat();
                Console.WriteLine();
                
            }
          
          
            Console.ReadLine();
        }


        }
    }

